Manish Singh [Mon, 7 Sep 1998 02:16:41 +0000 (02:16 +0000)]
cosmetic case change
-Yosh
Manish Singh [Sun, 6 Sep 1998 19:36:56 +0000 (19:36 +0000)]
#include <stdlib.h> for rand()
-Yosh
Owen Taylor [Sat, 5 Sep 1998 21:22:51 +0000 (21:22 +0000)]
When the pointer is grabbed on an input window, either explicitely, or
Sat Sep 5 16:01:19 1998 Owen Taylor <otaylor@gtk.org>
* gdk/gdkinputxfree.h gdk/gdk.c gdk/gdkinputgxi.h:
When the pointer is grabbed on an input window,
either explicitely, or through press-grab, and
then grabbed on a non-input window, ungrab the
devices.
Tim Janik [Sat, 5 Sep 1998 06:54:20 +0000 (06:54 +0000)]
don't include any gdk headers. added structure definitions for
Sat Sep 5 07:13:19 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.h: don't include any gdk headers.
added structure definitions for GtkTypeObject and GtkTypeClass,
which cover the very basic fields of GtkObject and GtkObjectClass,
which are actually used by the type system.
* gtk/gtktypeutils.c: don't include gtkobject.h or gtkcontainer.h,
we only refer to our own structures. improved class inheritance
sanity checking a bit.
* gtk/gtkobject.h: placed appropriate comments at the beginnings
of the GtkObject and GtkObjectClass structures, which explain
their relationship to GtkTypeObject and GtkTypeClass.
* gtk/gtktypeutils.h:
* gtk/gtkobject.h:
moved GTK_STRUCT_OFFSET(), GTK_CHECK_CAST(), GTK_CHECK_CLASS_CAST(),
GTK_CHECK_TYPE() and GTK_CHECK_CLASS_TYPE() macro definitions from
gtkobject.h to gtktypeutils.h.
* gtk/gtkobject.h:
* gtk/gtkobject.c:
removed gtk_object_check_cast() and gtk_object_check_class_cast()
functions. to keep source compatibility, we can provide macro aliases
for the corresponding gtk_type_* functions. but then again, people
shouldn't have been using these functions anyways since they were part
of Gtk's internal API.
* gtk/gtktypeutils.h:
* gtk/gtktypeutils.c:
implemented gtk_type_check_object_cast() and gtk_type_check_class_cast()
functions to check GtkTypeObject and GtkTypeClass types.
Tim Janik [Thu, 3 Sep 1998 07:28:37 +0000 (07:28 +0000)]
`const' fixups.
Thu Sep 3 07:16:54 1998 Tim Janik <timj@gtk.org>
* gtk/gtkctree.h:
* gtk/gtkctree.c: `const' fixups.
* gtk/gtkclist.h:
* gtk/gtkclist.c: `const' fixups and some coding style adaptions.
* gtk/gtkctree.c (gtk_ctree_insert_node): don't dereference *text
if it is passed as NULL.
Raph Levien [Thu, 3 Sep 1998 05:47:08 +0000 (05:47 +0000)]
Fixed up some of the bigendian 32bpp modes.
Tim Janik [Thu, 3 Sep 1998 02:48:52 +0000 (02:48 +0000)]
plug another small GtkSIgnalQuery leak.
Thu Sep 3 04:45:57 1998 Tim Janik <timj@gtk.org>
* gtk/gtkaccelgroup.c (gtk_accel_group_add): plug another small
GtkSIgnalQuery leak.
Tim Janik [Thu, 3 Sep 1998 02:38:53 +0000 (02:38 +0000)]
GTK_MENU_DIR_CHILD: check for the existance of
Thu Sep 3 04:22:20 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmenushell.c (gtk_real_menu_shell_move_current):
GTK_MENU_DIR_CHILD: check for the existance of
menu_shell->active_menu_item before accessing its child.
GTK_MENU_DIR_PREV:
GTK_MENU_DIR_NEXT: if we haven't had an active item and still
don't, make a default selection.
Wed Sep 2 00:28:58 1998 Tim Janik <timj@gtk.org>
* gtk/gtkwidget.c (gtk_widget_propagate_state): iterate
the children with _forall for sensitivity changes and with
_foreach on pure state changes. this fixes a lot of the
old inclusions of internal widgets into _foreach calls.
* gtk/gtktree.c: removed gtk_tree_foreach, let gtk_tree_forall
do the work. don't walk the subtrees of first level children.
* gtk/gtktreeitem.c: provide a _forall implementation,
which walks the subtrees as well for include_internals.
* gtk/gtkmenuitem.c: provide a _forall implementation, which walks
the submenus as well for include_internals.
* gtk/gtkscrolledwindow.c: removed gtk_scrolled_window_foreach and
implemented gtk_scrolled_window_forall, which will iterate over
the viewport and the scrollbars for gtk_container_forall or
iterate over the viewports children for gtk_container_foreach.
* gtk/gtktoolbar.c:
* gtk/gtktable.c:
* gtk/gtkpaned.c:
* gtk/gtkpacker.c:
* gtk/gtkmenushell.c:
* gtk/gtklist.c:
* gtk/gtkfixed.c:
* gtk/gtkclist.c:
* gtk/gtkbox.c:
* gtk/gtkbin.c:
* gtk/gtknotebook.c:
removed the old gtk_*_foreach functions and provided gtk_*_forall.
* gtk/gtknotebook.c:
(gtk_notebook_real_switch_page): expose tabs.
(gtk_notebook_page_num): new function to return the page number
of a distinct child.
(gtk_notebook_focus): minor fixups. foxus handling is still screwed
under some circumstances.
* gtk/gtktreeitem.c:
(gtk_real_tree_item_select):
(gtk_real_tree_item_deselect): major fixes.
some general fixups wrt queue_redraw, and tree items not being
NO_WINDOW widgets.
* gtk/gtklistitem.c:
(gtk_real_list_item_select):
(gtk_real_list_item_deselect):
(gtk_real_list_item_toggle):
removed unneccessary queue_redraw calls.
Wed Aug 30 09:42:07 1998 Tim Janik <timj@gtk.org>
* gtk/gtkoptionmenu.c: allow optionmenus to have the focus and
automatically popup the menu on space bar.
Wed Aug 26 06:40:34 1998 Tim Janik <timj@gtk.org>
* gtk/gtkcontainer.h:
* gtk/gtkcontainer.c: implemented gtk_container_forall() (as a class
method), which acts similar to gtk_container_foreach(), but iterates
over internal children. the GtkContainer::foreach signal vanished in
favour of a new class method ->forall() that optionally includes
internal widgets.
* gtk/gtkclist.c (gtk_clist_init): provide no _foreach implementation
but a _forall implementation, since all child widgets we have are
internal ones.
(column_button_create): set the parent window prior
to gtk_widget_set_parent().
* gtk/gtkwidget.c:
exchanged all calls to gtk_container_foreach() with
gtk_container_forall().
* gtk/gtkwidget.h:
* gtk/gtkwidget.c: added the GTK_COMPOSITE_CHILD, exported through
the GtkWidget::composite_child argument. to have a widget created
with the flag initially, two new functions got added to wrap a widgets
creation:
gtk_widget_push_composite_flag() and gtk_widget_pop_composite_flag().
Wed Aug 25 23:37:39 1998 Tim Janik <timj@gtk.org>
* gtk/gtktooltips.h:
* gtk/gtktooltips.c: exported gtk_tooltips_create_window() as
gtk_tooltips_force_window(), so tooltips->tip_window can be accessed
prior to the first tip being set.
don't put an extra reference on the window, since it is a toplevel,
it wont get destroyed from anywhere else.
* overall macro and GtkType fixups.
Federico Mena Quintero [Wed, 2 Sep 1998 21:46:49 +0000 (21:46 +0000)]
Replaced "foo == TRUE" and "foo == FALSE" constructs by more forgiving
1998-09-02 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkcolorsel.c: Replaced "foo == TRUE" and "foo == FALSE"
constructs by more forgiving ones. (Does anyone else feel like
the color selector need rewriting?).
Owen Taylor [Tue, 1 Sep 1998 18:41:26 +0000 (18:41 +0000)]
Unref the adjustment.
Tue Sep 1 10:53:52 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkprogress.c (gtk_progress_finalize): Unref
the adjustment.
* gtk/gtkmenu.c: Modified reference counting so
that the reference count from the toplevel that
the menu creates to the menu is invisible to the
application.
Raph Levien [Tue, 1 Sep 1998 06:01:30 +0000 (06:01 +0000)]
I should have added testrgb to the .cvsignore last time. Now I have.
Raph Levien [Tue, 1 Sep 1998 05:29:45 +0000 (05:29 +0000)]
Minor improvements to gdkrgb, added testrgb to the gtk directory.
Frank Belew (Myth) [Tue, 1 Sep 1998 05:20:20 +0000 (05:20 +0000)]
file .cvsignore was initially added on branch themes-2.
Raph Levien [Mon, 31 Aug 1998 22:18:18 +0000 (22:18 +0000)]
Added a gdk_draw_rgb_image_dithalign function.
Manish Singh [Sat, 29 Aug 1998 22:27:47 +0000 (22:27 +0000)]
quell some warnings with g_hash_table_new
* gdk/gdkcolor.c:
(gdk_colormap_new) (gdk_colormap_get_system):
quell some warnings with g_hash_table_new
* gtk/gtkaccelgroup.c (gtk_accel_group_add): free the GtkSignalQuery when
we're done with it
* gtk/itemfactory.c:
(gtk_item_factory_from_path):
(gtk_item_factory_create_item): free some strings
* gtk/gtklabel.c:
(gtk_label_finalize): free label->pattern when done
(gtk_label_parse_uline): null terminate pattern string, delete some duplicated
code
* gtk/testthreads.c: add #include <unistd.h> for sleep()
-Yosh
Owen Taylor [Tue, 25 Aug 1998 22:22:12 +0000 (22:22 +0000)]
Make sure the mark we pass to line start is the beginning of a real line,
Tue Aug 25 16:52:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c (recompute_geometry): Make sure the
mark we pass to line start is the beginning of a
real line, not a wrapped one.
Marius Vollmer [Tue, 25 Aug 1998 20:51:58 +0000 (20:51 +0000)]
Started to document the lowest layers of the type system.
Arturo Espinosa [Tue, 25 Aug 1998 16:44:03 +0000 (16:44 +0000)]
Updated the stupid builtins file, again - Federico
Owen Taylor [Tue, 25 Aug 1998 00:06:38 +0000 (00:06 +0000)]
Reference count the fonts used in the text widget.
Mon Aug 24 18:37:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c: Reference count the fonts used in
the text widget.
* gdk/gdk.h gdk/gdkcolor.c: Rename the color allocation
freeing functions to be more consistent, and more
convenient; leave the old names in for backwards compatibility.
* gdk/gdkcolor.c gdk/gdkprivate.h: Reference count the
allocations in pseudo-color colormaps to greatly reduce
calls to XAllocColor. Keep a per-colormap hashtable to
speed up finding if there is an already-allocated matching
color.
* gdk/gdkcolor.c: Don't just match read the system colormap
when the colormap is created, but synchronize our copy
with the system colormap periodically.
* gdk/gdk.c gdk/gdktypes.h gtk/gtkentry.c gtk/gtktext.c:
Change XIM constants names to match GDK conventions
* gtk/testinput.c: Allow the drawing area to get the focus.
* gtk/testgtk.c: Change around the Text test to demonstrates
multiple fonts, use more colors.
* gtk/gtkwidget.c: Improve gtk_widget_get_colormap()/visual()
so they work after a widget is unrealized.
* gtk/gtktext.[ch]: Remove the requirement that the text
widget be realized before adding text (!) Allocate colors
ourself, instead of requiring the caller allocate them.
Allow changing styles to work properly by keeping track
of the values for a certain property are default or
set explicitely.
* gtk/gtkmenu.h: Added some comments.
* gtk/gtkentry.c: Changes to match XIM constants.
* gtk/gdk.h gdk/gdkwindow.c: Add gdk_drawable_set_data(),
for adding keyed data to drawables. (Uses g_dataset
internally)
* gdk/gdkpixmap.c: Keep track of the colors we allocate,
when creating an XPM - store them as user data for the GdkPixmap,
so we don't leak colors when we create pixmaps from XPM's.
Allocate memory for color information in large blocks instead of
as many little pieces.
Manish Singh [Mon, 24 Aug 1998 18:13:08 +0000 (18:13 +0000)]
removed some unused variables
* gdk/gdkrgb.c: removed some unused variables
* gtk/gtkclist.c
* gtk/gtkmain.c: #if 0'd out some unused code
* gtk/gtkobject.c: check for NULL object hash table in gtk_object_debug
-Yosh
Tim Janik [Mon, 24 Aug 1998 05:27:29 +0000 (05:27 +0000)]
begin the parameter elipsis (...) after the first argument name. this
Mon Aug 24 02:36:53 1998 Tim Janik <timj@gtk.org>
* gtk/gtkarg.h:
* gtk/gtkarg.c:
* gtk/gtkwidget.h:
* gtk/gtkwidget.c:
* gtk/gtkobject.h:
* gtk/gtkobject.c:
* gtk/gtkcontainer.h:
* gtk/gtkcontainer.c:
(gtk_object_new):
(gtk_object_set):
(gtk_widget_new):
(gtk_widget_set):
(gtk_container_add_with_args):
(gtk_container_child_set):
begin the parameter elipsis (...) after the first argument name. this
change is source compatible, since it was always required, even as NULL.
(gtk_args_collect):
(gtk_object_args_collect):
(gtk_container_child_args_collect):
changed prototypes to pass first_arg_name, also, pass va_list variable
by value (portability concerns). callers changed.
* gtk/gtkargcollector.c: implemented gtk_arg_collect_value() as
a huge macro GTK_ARG_COLLECT_VALUE() <shrug>. this is needed because we
can't pass va_list variables by reference for portability reasons.
Raph Levien [Sat, 22 Aug 1998 05:41:32 +0000 (05:41 +0000)]
Added some calls to gdk_rgb_init, so it's much more likely to correctly
initialize now.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:55 +0000 (01:29 +0000)]
file makemakefile.sh was initially added on branch themes-2.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:54 +0000 (01:29 +0000)]
file README was initially added on branch themes-2.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:53 +0000 (01:29 +0000)]
file Makefile.am was initially added on branch themes-2.
Carsten Haitzler [Sat, 22 Aug 1998 01:29:52 +0000 (01:29 +0000)]
file ICON.png was initially added on branch themes-2.
Owen Taylor [Sat, 22 Aug 1998 00:13:35 +0000 (00:13 +0000)]
file ltmain.sh was initially added on branch themes-2.
Owen Taylor [Sat, 22 Aug 1998 00:13:34 +0000 (00:13 +0000)]
file ltconfig was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:47:22 +0000 (23:47 +0000)]
file makemakefile.sh was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:47:21 +0000 (23:47 +0000)]
file Makefile.am was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:47:20 +0000 (23:47 +0000)]
file .cvsignore was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:07 +0000 (23:41 +0000)]
file install-sh was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:06 +0000 (23:41 +0000)]
file README was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:05 +0000 (23:41 +0000)]
file NEWS was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:02 +0000 (23:41 +0000)]
file ChangeLog was initially added on branch themes-2.
Owen Taylor [Fri, 21 Aug 1998 23:41:01 +0000 (23:41 +0000)]
file AUTHORS was initially added on branch themes-2.
Stuart Parmenter [Fri, 21 Aug 1998 17:07:11 +0000 (17:07 +0000)]
added GTK_HAVE_FEATURES_1_1_2
Tim Janik [Fri, 21 Aug 1998 02:22:06 +0000 (02:22 +0000)]
added a function to perform a binary version check, returning a static
Fri Aug 21 02:31:26 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.h:
* gtk/gtkmain.c (gtk_check_version): added a function to perform a
binary version check, returning a static string for error descriptions,
or NULL on success.
Owen Taylor [Fri, 21 Aug 1998 00:13:38 +0000 (00:13 +0000)]
Check to see if we've computed our geometry yet, and if not, ignore the
Thu Aug 20 20:08:15 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.c ([un]draw_cursor): Check to see if we've
computed our geometry yet, and if not, ignore the request.
gtk/gtktext.c (correct_cache_insert): Fiddled around]
some more. All the bug-test codes seem to work at once
now. (fingers crossed...)
Carsten Haitzler [Thu, 20 Aug 1998 22:20:49 +0000 (22:20 +0000)]
file gtkrc was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:06 +0000 (22:20 +0000)]
file metal_theme_main.c was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:05 +0000 (22:20 +0000)]
file metal_theme_draw.c was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:04 +0000 (22:20 +0000)]
file metal_theme.h was initially added on branch themes-2.
Carsten Haitzler [Thu, 20 Aug 1998 22:20:03 +0000 (22:20 +0000)]
file README.metal was initially added on branch themes-2.
Manish Singh [Thu, 20 Aug 1998 20:10:52 +0000 (20:10 +0000)]
silly visual fixes
* gdk/gdkrgb.c: silly visual fixes
* gtk/testgtk.c: call gdk_rgb_init so color preview test actually works
-Yosh
Federico Mena Quintero [Thu, 20 Aug 1998 16:55:16 +0000 (16:55 +0000)]
Do not do anything if the event's window is not the bin window.
1998-08-20 Federico Mena Quintero <federico@nuclecu.unam.mx>
* gtk/gtkhandlebox.c (gtk_handle_box_button_changed): Do not do
anything if the event's window is not the bin window.
(gtk_handle_box_motion): Likewise.
Raph Levien [Thu, 20 Aug 1998 06:59:26 +0000 (06:59 +0000)]
Change to testgtk to go along with GdkRgb integration into gtk_preview.
Raph Levien [Thu, 20 Aug 1998 06:52:52 +0000 (06:52 +0000)]
Minor fixes that were needed for the Gimp/GdkRgb integration.
Tim Janik [Tue, 18 Aug 1998 22:22:22 +0000 (22:22 +0000)]
allow argument parsing in gtk without G_ENABLE_DEBUG being defined
Wed Aug 19 00:11:14 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): allow argument parsing in gtk without
G_ENABLE_DEBUG being defined (specifically --gtk-module= and
--g-fatal-warnings), noticed by miguel.
Tim Janik [Tue, 18 Aug 1998 16:58:09 +0000 (16:58 +0000)]
use g_get_current_dir() instead of getcwd().
Tue Aug 18 17:54:40 1998 Tim Janik <timj@gtk.org>
* gtk/gtkrc.c (gtk_rc_parse_file): use g_get_current_dir() instead of
getcwd().
* gdk/gdkprivate.h:
* gdk/gdkglobals.c:
* gdk/gdkwindow.c:
* gdk/gdk.c:
* gtk/gtkwindow.c:
* gtk/gtkitemfactory.c:
dropped gdk_progname, use g_get_prgname()/g_set_prgname() instead.
* gtk/gtkselection.c:
* gtk/gtkpreview.c:
* gtk/gtkobject.c:
* gtk/gtkmain.c:
* gtk/gtktypeutils.c: indentation fixes due to g_message() use.
* gdk/gdkrgb.c: exchanged occourances of g_print with g_message.
Lars Hamann [Tue, 18 Aug 1998 15:31:49 +0000 (15:31 +0000)]
fix for sigsegv in case of show_tabs == NULL
Tue Aug 18 17:22:22 1998 Lars Hamann <lars@gtk.org>
* gtk/gtknotebook.c (gtk_notebook_switch_focus_tab):
* gtk/gtknotebook.c (gtk_notebook_update_labels): fix for sigsegv
in case of show_tabs == NULL
Tim Janik [Tue, 18 Aug 1998 03:59:41 +0000 (03:59 +0000)]
restricted the --g*fatal-* arguments to --g-fatal-warnings again. this
Tue Aug 18 03:54:43 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): restricted the --g*fatal-* arguments
to --g-fatal-warnings again. this option now causes log levels of
WARNING and CRITICAL to abort().
* gdk/gdk.c:
* gdk/gdkdnd.c:
* gdk/gdkcc.c:
* gdk/gdkfont.c:
* gdk/gdkwindow.c:
* gdk/gdkvisual.c:
* gtk/gtkwidget.c:
* gtk/gtktypeutils.c:
* gtk/gtktree.c:
* gtk/gtkfontsel.c:
* gtk/gtkmain.c:
* gtk/gtkobject.c:
* gtk/gtkpreview.c:
* gtk/gtkselection.c:
* gtk/gtktext.c:
* gtk/gtktree.c:
* gtk/gtktreeitem.c:
did a global search&replace to substitute g_print() calls with
g_message(). libraries shouldn't use printf(), g_print() or
g_printerr() at all.
a bunch of the replacements should probably be wrapped into the
G{D|T}K_NOTE() macros, so they are special cased for debugging
purposes in a sane way, avoiding all the nasty #ifdef DEBUG_MY_TEDDY
things.
* gdk/gdkrgb.c: left this out currently.
* gdk/gdkdnd.c: added copyright notice.
Raph Levien [Tue, 18 Aug 1998 00:34:43 +0000 (00:34 +0000)]
It works better when I actually check the file in :) (I.e. this is the
speedup I was trying to check in a minute ago).
Raph Levien [Tue, 18 Aug 1998 00:32:34 +0000 (00:32 +0000)]
More speedups to the 565_d case.
Lars Hamann [Mon, 17 Aug 1998 23:48:04 +0000 (23:48 +0000)]
new class methods: (sort_list) (insert_row) (remove_row)
Tue Aug 18 00:29:13 1998 Lars Hamann <lars@gtk.org>
* gtk/gtkclist.h:
(struct _GtkCListClass): new class methods:
(sort_list) (insert_row) (remove_row) (set_cell_contents)
* gtk/gtkclist.c :
(cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
removed and replaced by (set_cell_contents)
(set_cell_contents): function for class method set_cell_contents
(real_insert_row): function for class method insert_row
(real_remoce_row): function for class method remove_row
(real_sort_list): function for class method sort_list
(default_compare): fix to avoid problems with cell types != CELL_TEXT
* gtk/gtkctree.h :
(gtk_ctree_export_to_gnode): new function to export a ctree as gnode
(gtk_ctree_node_is_visible): new function to return visibility state
of a node
(gtk_ctree_show_stub): new function to set visibility of root stub
renamed functions :
(gtk_ctree_insert) -> (gtk_ctree_insert_node)
(gtk_ctree_remove) -> (gtk_ctree_remove_node)
(gtk_ctree_find_glist_ptr) -> (gtk_ctree_find_node_ptr)
(gtk_ctree_set_text) -> (gtk_ctree_node_set_text)
(gtk_ctree_set_pixmap) -> (gtk_ctree_node_set_pixmap)
(gtk_ctree_set_pixtext) -> (gtk_ctree_node_set_pixtext)
(gtk_ctree_set_shift) -> (gtk_ctree_node_set_shift)
(gtk_ctree_get_cell_type) -> (gtk_ctree_node_get_cell_type)
(gtk_ctree_get_text) -> (gtk_ctree_node_get_text)
(gtk_ctree_get_pixmap) -> (gtk_ctree_node_get_pixmap)
(gtk_ctree_get_pixtext) -> (gtk_ctree_node_get_pixtext)
(gtk_ctree_set_foreground) -> (gtk_ctree_node_set_foreground)
(gtk_ctree_set_background) -> (gtk_ctree_node_set_background)
(gtk_ctree_set_row_data) -> (gtk_ctree_node_set_row_data)
(gtk_ctree_set_row_data_full) -> (gtk_ctree_node_set_row_data_full)
(gtk_ctree_get_row_data) -> (gtk_ctree_node_get_row_data)
(gtk_ctree_moveto) -> (gtk_ctree_node_moveto)
(gtk_ctree_sort) -> (gtk_ctree_sort_node)
(gtk_ctree_is_visibe) -> (gtk_ctree_is_viewable)
* gtk/gtkctree.c :
(cell_empty) (cell_set_text) (cell_set_pixmap) (cell_set_pixtext):
removed and replaced by (set_cell_contents)
(set_cell_contents): function for class method set_cell_contents
(real_insert_row): function for class method insert_row
(real_remoce_row): function for class method remove_row
(real_sort_list): function for class method sort_list
(default_compare): removed. CTree now also compares two GtkCTreeRows
instead of two GtkCTreeNodes.
(gtk_ctree_unlink): call gtk_ctree_collapse if parent is empty after
unlinking the node
(real_tree_expand) (real_tree_collapse): fix for refcounting of
node pixmaps
(set_node_info): call gtk_ctree_node_set_pixtext instead of
manipulating the row itself
* gtk/testgtk.c: use renamed functions of GtkCTree.
new sample to show gtk_ctree_export_to_gnode and gtk_ctree_insert_gnode
at work.
Tim Janik [Mon, 17 Aug 1998 14:48:51 +0000 (14:48 +0000)]
removed gtk_input_add_interp.
Mon Aug 17 15:31:38 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c: removed gtk_input_add_interp.
* gtk/gtkeditable.c (gtk_editable_set_position): fixed bogus "return"
keyword.
(gtk_editable_get_event_time): fix default: case.
* gtk/gtkclist.c (gtk_clist_swap_rows): fixes for lvalue casts.
* gdk/gdkpixmap.c: made a bunch of unexported functions static.
* gdk/gdkcolor.c:
* gdk/gdkvisual.c: include "gdkx.h", since it exports prototypes
of our functions.
* various minor compilation cleanups, such as bogus commas in
enums and similar things.
M
Dietmar Maurer [Mon, 17 Aug 1998 08:28:13 +0000 (08:28 +0000)]
gdk.c: fixed bug in gdk_input_remove
Tim Janik [Mon, 17 Aug 1998 05:49:13 +0000 (05:49 +0000)]
NULL terminate the arg list to g_strconcat() (thanx raph).
Mon Aug 17 07:47:43 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): NULL terminate the arg list to g_strconcat()
(thanx raph).
Shawn Amundson [Mon, 17 Aug 1998 05:24:45 +0000 (05:24 +0000)]
release delayed...
CDT 1998 Shawn T. Amundson [Mon, 17 Aug 1998 05:04:33 +0000 (05:04 +0000)]
Released GTK+ 1.1.2
Sun Aug 16 23:14:20 CDT 1998 Shawn T. Amundson <amundson@gtk.org>
* Released GTK+ 1.1.2
* NEWS: updated for 1.1.2
* gtk+.spec: version = 1.1.2
Tim Janik [Mon, 17 Aug 1998 03:54:27 +0000 (03:54 +0000)]
remove the ugly HAVE_LIBGLE test (last time i typed that word!).
Tim Janik [Mon, 17 Aug 1998 03:12:10 +0000 (03:12 +0000)]
don't call module initializers multiple times. changed --gtk-with-module
Mon Aug 17 05:10:29 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): don't call module initializers multiple
times. changed --gtk-with-module to --gtk-module at owen's request.
Tim Janik [Mon, 17 Aug 1998 02:41:42 +0000 (02:41 +0000)]
feature a new commandline option --gtk-with-module=<module> that allows
Mon Aug 17 03:47:55 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): feature a new commandline option
--gtk-with-module=<module> that allows additional loading and
initialization of modules (e.g. GLE).
Tim Janik [Mon, 17 Aug 1998 00:40:55 +0000 (00:40 +0000)]
version bump to 1.1.1, binary age 0, interface age 0. pass "gmodule" to
Mon Aug 17 01:40:00 1998 Tim Janik <timj@gtk.org>
* configure.in: version bump to 1.1.1, binary age 0, interface age 0.
pass "gmodule" to AM_PATH_GLIB, with that we require libgmodule.so now.
* gtk/gtkmain.c (gtk_init): since glib's g_return*_if_fail macros log
with G_LOG_LEVEL_CRITICAL now, i added "--g-fatal-checks",
"--gdk-fatal-checks" and "--gtk-fatal-checks". that makes up six
different *-fatal-* arguments now. this needs to be revised and
compressed to a reasonable amount of arguments.
Tim Janik [Sun, 16 Aug 1998 21:15:11 +0000 (21:15 +0000)]
fatal warning option is split up now, "--g-fatal-warnings" causes fatal
Sun Aug 16 20:51:59 1998 Tim Janik <timj@gtk.org>
* gtk/gtkmain.c (gtk_init): fatal warning option is split up now,
"--g-fatal-warnings" causes fatal warnings in GLib,
"--gdk-fatal-warnings" causes fatal warnings in Gdk,
"--gtk-fatal-warnings" causes fatal warnings in Gtk.
* gtk/Makefile.am: define G_LOG_DOMAIN for gtk.
* gdk/Makefile.am: define G_LOG_DOMAIN for gdk.
* gtk/testgtk.c:
* gdk/gxid.c:
we need ugly #undef G_LOG_DOMAIN at the start of these files currently,
since automake doesn't support per target _CFLAGS yet.
* configure.in: require GLib 1.1.3.
johne [Sat, 15 Aug 1998 07:32:34 +0000 (07:32 +0000)]
Forgot Changelog.
John Ellis [Sat, 15 Aug 1998 07:30:01 +0000 (07:30 +0000)]
New function to set a callback to test if a node in drag can be dropped
Sat Aug 15 03:19:30 1998 John Ellis <johne@bellatlantic.net>
* gtk/gtkctree.[ch] (gtk_ctree_set_drag_compare_func): New function
to set a callback to test if a node in drag can be dropped onto
it's currrent location.
* gtk/gtkctree.c (set_mouse_cursor),(check_cursor): New functions
to change the pointer when a drag destination is not allowed.
Arturo Espinosa [Fri, 14 Aug 1998 22:20:47 +0000 (22:20 +0000)]
Regenerated gtktypebuiltins.h by hand. The autostuff files really need to be
changed to detect the presence of awk/perl and enable regeneration of the maintainer-only files
inside the gtk subdirectory - Federico
Raph Levien [Fri, 14 Aug 1998 04:06:42 +0000 (04:06 +0000)]
Committing a patch by Ray Lehtiniemi to speed up 565_d by 25%.
Owen Taylor [Thu, 13 Aug 1998 21:18:43 +0000 (21:18 +0000)]
Added file README.cvs-commits
* Added file README.cvs-commits
Owen Taylor [Thu, 13 Aug 1998 21:00:43 +0000 (21:00 +0000)]
Changed GtkSignalFunc back to () from (void). (again!)
Thu Aug 13 16:47:44 1998 Owen Taylor <otaylor@redhat.com>
* Changed GtkSignalFunc back to () from (void). (again!)
Nat Friedman [Thu, 13 Aug 1998 19:03:48 +0000 (19:03 +0000)]
Fixed the GtkSignalFunc typedef to read "(void)" instead of "()", which
Fixed the GtkSignalFunc typedef to read "(void)" instead of "()", which was
causing it to not build on my irix machine.
Tony Gale [Thu, 13 Aug 1998 13:35:11 +0000 (13:35 +0000)]
One character type fix - tony [gale@gtk.org]
BST 1998 Tony Gale [Thu, 13 Aug 1998 13:11:14 +0000 (13:11 +0000)]
- Tidy up of the menufactory example from Andy Kahn <kahn@zk3.dec.com> -
Thu Aug 13 09:11:11 BST 1998 Tony Gale <gale@gtk.org>
* docs/gtk_tut.sgml:
- Tidy up of the menufactory example from
Andy Kahn <kahn@zk3.dec.com>
- New section on Range Widgets from
David Huggins-Daines <bn711@freenet.carleton.ca>
- Started a new section on 'Advanced Event and Signal
Handling' - used an email from Owen.
- New appendix on Gdk Event Types
- Added the tictactoe full example code to the
'Code Examples' appendix
Owen Taylor [Wed, 12 Aug 1998 16:53:45 +0000 (16:53 +0000)]
More ChangeLog fixups.
Owen Taylor [Wed, 12 Aug 1998 16:50:41 +0000 (16:50 +0000)]
Removed leftover bits from ChangeLog
Owen Taylor [Wed, 12 Aug 1998 16:49:13 +0000 (16:49 +0000)]
Added gdk_text/string_extents() - too calculate all the metrics at once of
Tue Jul 21 12:42:01 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdk.h gdk/gdkfont.c: Added gdk_text/string_extents() -
too calculate all the metrics at once of a string, including
things which weren't calculated before.
* gtk/Makefile.am gtk/gtk.h gtk/gtktearoffmenu.[ch]: New
MenuItem type, that when put as the first thing in a
menu, makes the menu tearoff. Currently drawn as a
dashed line.
* gtk/gtkmenuitem.h gtk/gtkcheckmenuitem.c: Added a flag
"hide_on_activate" to the MenuItem class structure to allow
check and radio buttons to be changed with <Space> without
hiding the menu.
* gtk/gtkaccellabel.[ch]: Added new capabilities to set
a underline_group and underline_mods for the label -
accelerators added in the underline group matching
underline_mods will be displayed as an underline character.
This doesn't work - Save As needs to be underlined
as Save _As.
* gtk/gtkitemfactory.c:
- Create a AccelGroup for each MenuShell we create.
- If an '&' appears before a character 'c' in the path,
then make 'c' an accelerator in the menu's accel group,
and if the menuitem is menubar <alt>C an accelerator
in the itemfactory's accel group.
* gtk/gtklabel.[ch]: Add support for a pattern arg -
which is a string. If an '_' appears in this string,
the corresponding position in the label is underlined.
Add gtk_label_parse_uline() convenience function which
takes a string with embedded underlines, sets the
pattern and label, and returns the accelerator keyval.
* gtk/gtkmenu.[ch]: Make menus no longer a toplevel widget.
Instead, they create a GtkWindow and add themselves
to that. (When torn off, another new feature, they
create another GtkWindow to hold the torn off menu)
New function gtk_menu_set_tearoff_state()
* gtk/gtkenums.h gtk/gtkmenushell.[ch] gtk/gtkenums.h:
Added action signals for keyboard navigation of menus.
* gtk/gtkmenushell.c: Key press handler which activates
bindings for navigation, and accelerators, for handling
underline accelerators. Exported functions to select
and activate menu items in a menushell.
* gtk/testgtk.c: Added a new "Item Factory" test which
tests GtkItemFactory and the new keyboard navigation
of menus.
Tim Janik [Tue, 11 Aug 1998 19:29:36 +0000 (19:29 +0000)]
relookup nodes after external functions have been called. also relookup
Tue Aug 11 20:52:58 1998 Tim Janik <timj@gtk.org>
* gtk/gtktypeutils.c (gtk_type_class_init): relookup nodes after
external functions have been called. also relookup nodes after
this function has been invoked.
Owen Taylor [Tue, 11 Aug 1998 19:06:18 +0000 (19:06 +0000)]
Removed has_cursor, set the cursor beginning of Text when creating the
Tue Aug 11 15:04:52 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtktext.[ch]: Removed has_cursor, set the cursor
beginning of Text when creating the Text widget.
* gtk/testgtk.c: Grab the focus on the text widget so
as to test out the above.
Tue Aug 11 14:55:00 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkeditable.c: Reverted part of timj's change of Jul 16.
::changed is a notification signal and should have no default
handler. A complete redraw of the Text widget does _not_ need to
be done on every text insertion.
Tue Aug 11 13:07:29 1998 Owen Taylor <otaylor@redhat.com>
(gtk-abilleira-072198-patch)
* gtk/gtkwindow.[ch]:
Add gtk_window_set_modal() which sets a flag; when
set the window does a gtk_grab_add() when the window
is shown, and a gtk_grab_remove() when the window
is hidden.
* gtk/gtkfilesel.[ch]: Test if it is running in modal form and in
that case will run "Create Dir","Delete File" and "Rename File"
dialogs as modal too.
* gtk/testgtk.c: Added a button with an example of creating modal
dialog boxes. Including file selection and color selection standard
dialogs.
Tue Aug 11 00:44:47 1998 Owen Taylor <otaylor@redhat.com>
* gtk/gtkhscrollbar.c gtk/gtkvscrollbar.c gtk/gtktoolbar.c:
Removed CAN_FOCUS by default from scrollbars, button
children of toolbar. (But not GDK_TOOLBAR_CHILD_WIDGET children)
(Scrollbar definitely good change, toolbar bit more questionable)
Tim Janik [Tue, 11 Aug 1998 18:27:49 +0000 (18:27 +0000)]
#include fixes (reported by Asbjoern Pettersen).
Tue Aug 11 17:49:33 1998 Tim Janik <timj@gtk.org>
* examples/packbox/packbox.c: #include fixes (reported by Asbjoern
Pettersen).
Owen Taylor [Tue, 11 Aug 1998 04:32:14 +0000 (04:32 +0000)]
Applied gtk-pedersen-980727-0; added all logical operations to
Tue Aug 11 00:35:56 1998 Owen Taylor <otaylor@redhat.com>
* gdk/gdkgc.c gdk/gdktypes.h: Applied gtk-pedersen-980727-0;
added all logical operations to gc->function.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:26 +0000 (03:06 +0000)]
file DUMMY was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:24 +0000 (03:06 +0000)]
file vline.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:23 +0000 (03:06 +0000)]
file trough.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:22 +0000 (03:06 +0000)]
file shadow2.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:21 +0000 (03:06 +0000)]
file shadow1.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:20 +0000 (03:06 +0000)]
file scrollbar_vert1.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:19 +0000 (03:06 +0000)]
file scrollbar_thumb2.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:18 +0000 (03:06 +0000)]
file scrollbar_thumb.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:17 +0000 (03:06 +0000)]
file scrollbar_horiz1.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:16 +0000 (03:06 +0000)]
file ruler_vert.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:15 +0000 (03:06 +0000)]
file ruler_horiz.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:13 +0000 (03:06 +0000)]
file progressbar.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:12 +0000 (03:06 +0000)]
file option_menu.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:11 +0000 (03:06 +0000)]
file option2.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:10 +0000 (03:06 +0000)]
file option1.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:09 +0000 (03:06 +0000)]
file hline.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:08 +0000 (03:06 +0000)]
file handle_vert_thumb.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:07 +0000 (03:06 +0000)]
file gap_top_start.png was initially added on branch themes-2.
Carsten Haitzler [Tue, 11 Aug 1998 03:06:06 +0000 (03:06 +0000)]
file gap_top_end.png was initially added on branch themes-2.